package com.example.p66;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        int limit=100;
        int sum=0;
        int i=1;
        do {
            sum=sum+i;
            i++;
        }
        while (i<=limit);
        System.out.println("1到100的和为:"+sum);
        }
    }

